<!--作者：靳晓璐-->
<template>
  <div>
    <Leftbar>
    </Leftbar>
    <headers_copy>
    </headers_copy>
  <el-table  class="class"
             :data="tableData"
             style="width: 100%">
    <el-table-column
      label="专题"
      width="420">
      <template slot-scope="scope">
        <el-popover trigger="hover" placement="top">
          <p>专题: {{ scope.row.name }}</p>
          <p>摘要: {{ scope.row.address }}</p>
          <div slot="reference" class="name-wrapper">
            <el-button type="text">专题名称</el-button>
          </div>
        </el-popover>
      </template>
    </el-table-column>
    <el-table-column
      label="创建时间"
      width="220" >
      <template slot-scope="scope">
        <i class="el-icon-time"></i>
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>
    <el-table-column  label="操作" >
      <template slot-scope="scope">
        <el-button-group>
          <el-button type="primary"plain icon="el-icon-edit"></el-button>
          <el-button type="primary"plain icon="el-icon-delete"></el-button>
        </el-button-group>
      </template>
    </el-table-column>
  </el-table>
  </div>
</template>
<script>

import Leftbar from "../components/Leftbar";
import headers_copy from "@/components/headers_copy";

export default {
  name:"Class",
  components: {
    Leftbar,
    headers_copy,
  },
  data() {
    return {
      tableData: [{
        date: '2021-7-01',
        name: '专题名称',
        address: '专题简介'
      }, {
        date: '2021-7-01',
        name: '专题名称',
        address: '专题简介'
      }, {
        date: '2021-7-01',
        name: '专题名称',
        address: '专题简介'
      }, {
        date: '2021-7-01',
        name: '专题名称',
        address: '专题简介'
      }]
    }
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    }
  }
}
</script>
<style scoped>
.class{
  margin-left: 250px;
  margin-top: 5px;
}
</style>
